/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.celiosilva.simbanc.teste;

import org.apache.log4j.Logger;

/**
 *
 * @author celio@celiosilva.com
 */
public class StringTeste {

    private static final Logger log = Logger.getLogger(StringTeste.class);

    public static void main(String... args){
        log.trace("test");
        String s = "celio";
        String s2 = new String("celio");
        new String();
        String s3 = new String("outra string");
        s3.toUpperCase();
        s3.concat(s2);
        System.out.println(s3);
        s2 = s3.toUpperCase();
        System.out.println(s3);
        System.out.println(s2);
        System.out.println(s == "celio");
        System.out.println(s == new String("celio"));
        System.out.println(s.equals(new String("celio")));
    }

    private static void log(){
    }

}